<?php

function open_db() {
	$cons=mysql_connect("localhost","root","");
	mysql_select_db("travel",$cons);
	mysql_query("set names 'utf8'");
}
function close_db() {
	$cons=mysql_connect("localhost","root","");
	mysql_close($cons);
}

// root url rewrite
	$rootweb = "http://".$_SERVER['HTTP_HOST']."/";
	
// root editor
	$rootURL="http://".$_SERVER['HTTP_HOST']."/thynguyen/";
	$rootDOC = $_SERVER['DOCUMENT_ROOT']."/thynguyen/";
	$folder = "/thynguyen/";

?>